﻿#include "help_outfile.h"
#include "dhlz_type.h"

#include <QWidget>
#include <QDir>
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include <QDateTime>

static const unsigned char dhlz_type_data[1020] =
{
    0x23, 0x69, 0x66, 0x6E, 0x64, 0x65, 0x66, 0x20, 0x44, 0x48, 0x4C, 0x5A, 0x5F, 0x54, 0x59, 0x50,
    0x45, 0x5F, 0x48, 0x0D, 0x0A, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6E, 0x65, 0x20, 0x44, 0x48, 0x4C,
    0x5A, 0x5F, 0x54, 0x59, 0x50, 0x45, 0x5F, 0x48, 0x0D, 0x0A, 0x0D, 0x0A, 0x23, 0x64, 0x65, 0x66,
    0x69, 0x6E, 0x65, 0x20, 0x44, 0x48, 0x4C, 0x5A, 0x5F, 0x46, 0x4C, 0x41, 0x53, 0x48, 0x5F, 0x4F,
    0x46, 0x46, 0x53, 0x45, 0x54, 0x20, 0x20, 0x20, 0x30, 0x78, 0x30, 0x30, 0x30, 0x30, 0x20, 0x20,
    0x2F, 0x2A, 0x20, 0x46, 0x4C, 0x41, 0x53, 0x48, 0xE5, 0x81, 0x8F, 0xE7, 0xA7, 0xBB, 0xE5, 0x9C,
    0xB0, 0xE5, 0x9D, 0x80, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x0D, 0x0A, 0x73, 0x74, 0x72, 0x75, 0x63,
    0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x0D, 0x0A, 0x7B,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x73,
    0x68, 0x6F, 0x72, 0x74, 0x20, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x3B, 0x20,
    0x20, 0x20, 0x2F, 0x2A, 0x20, 0xE5, 0xA4, 0xB4, 0xE4, 0xBF, 0xA1, 0xE6, 0x81, 0xAF, 0xE5, 0xA4,
    0xA7, 0xE5, 0xB0, 0x8F, 0x28, 0x62, 0x79, 0x74, 0x65, 0x29, 0x6E, 0x2A, 0x31, 0x36, 0x20, 0x2A,
    0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x61, 0x67, 0x5B,
    0x36, 0x5D, 0x3B, 0x20, 0x2F, 0x2A, 0x20, 0x44, 0x48, 0x4C, 0x5A, 0x20, 0x2A, 0x2F, 0x0D, 0x0A,
    0x20, 0x20, 0x20, 0x20, 0x63, 0x68, 0x61, 0x72, 0x20, 0x74, 0x69, 0x6D, 0x65, 0x5B, 0x32, 0x30,
    0x5D, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x63, 0x68, 0x61, 0x72, 0x20, 0x76, 0x65, 0x72,
    0x5B, 0x32, 0x30, 0x5D, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67,
    0x6E, 0x65, 0x64, 0x20, 0x73, 0x68, 0x6F, 0x72, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x6E,
    0x75, 0x6D, 0x62, 0x65, 0x72, 0x3B, 0x20, 0x2F, 0x2A, 0x20, 0xE6, 0x96, 0x87, 0xE4, 0xBB, 0xB6,
    0xE6, 0x95, 0xB0, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69,
    0x67, 0x6E, 0x65, 0x64, 0x20, 0x73, 0x68, 0x6F, 0x72, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F,
    0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x3B, 0x20, 0x20, 0x2F, 0x2A, 0x20, 0xE6,
    0x96, 0x87, 0xE4, 0xBB, 0xB6, 0xE4, 0xBF, 0xA1, 0xE6, 0x81, 0xAF, 0xE5, 0xA4, 0xA7, 0xE5, 0xB0,
    0x8F, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E,
    0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66,
    0x6F, 0x5F, 0x63, 0x72, 0x63, 0x33, 0x32, 0x3B, 0x20, 0x20, 0x2F, 0x2A, 0x20, 0xE6, 0x96, 0x87,
    0xE4, 0xBB, 0xB6, 0xE4, 0xBF, 0xA1, 0xE6, 0x81, 0xAF, 0xE6, 0xA0, 0xA1, 0xE9, 0xAA, 0x8C, 0x20,
    0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64,
    0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x64, 0x61, 0x74, 0x61, 0x5F,
    0x6F, 0x66, 0x66, 0x73, 0x65, 0x74, 0x3B, 0x20, 0x2F, 0x2A, 0x20, 0xE6, 0x96, 0x87, 0xE4, 0xBB,
    0xB6, 0xE5, 0x86, 0x85, 0xE5, 0xAE, 0xB9, 0xE8, 0xB5, 0xB7, 0xE5, 0xA7, 0x8B, 0xE5, 0x81, 0x8F,
    0xE7, 0xA7, 0xBB, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69,
    0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x64,
    0x61, 0x74, 0x61, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x3B, 0x20, 0x20, 0x20, 0x2F, 0x2A, 0x20, 0xE6,
    0x96, 0x87, 0xE4, 0xBB, 0xB6, 0xE5, 0x86, 0x85, 0xE5, 0xAE, 0xB9, 0xE5, 0xA4, 0xA7, 0xE5, 0xB0,
    0x8F, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E,
    0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x64, 0x61, 0x74,
    0x61, 0x5F, 0x63, 0x72, 0x63, 0x33, 0x32, 0x3B, 0x20, 0x20, 0x2F, 0x2A, 0x20, 0xE6, 0x96, 0x87,
    0xE4, 0xBB, 0xB6, 0xE5, 0x86, 0x85, 0xE5, 0xAE, 0xB9, 0xE6, 0xA0, 0xA1, 0xE9, 0xAA, 0x8C, 0x20,
    0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64,
    0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x63, 0x72, 0x63, 0x33, 0x32,
    0x3B, 0x20, 0x20, 0x20, 0x2F, 0x2A, 0x20, 0xE5, 0xA4, 0xB4, 0xE4, 0xBF, 0xA1, 0xE6, 0x81, 0xAF,
    0xE6, 0xA0, 0xA1, 0xE9, 0xAA, 0x8C, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x7D, 0x3B, 0x0D, 0x0A, 0x0D,
    0x0A, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66,
    0x6F, 0x5F, 0x74, 0x20, 0x20, 0x2F, 0x2A, 0x20, 0x38, 0x62, 0x79, 0x74, 0x65, 0xE5, 0xAF, 0xB9,
    0xE9, 0xBD, 0x90, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x63,
    0x68, 0x61, 0x72, 0x20, 0x6E, 0x61, 0x6D, 0x65, 0x5B, 0x33, 0x32, 0x5D, 0x3B, 0x0D, 0x0A, 0x20,
    0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67,
    0x20, 0x20, 0x61, 0x64, 0x64, 0x65, 0x72, 0x5F, 0x6F, 0x66, 0x66, 0x73, 0x65, 0x74, 0x3B, 0x2F,
    0x2A, 0x20, 0xE6, 0x96, 0x87, 0xE4, 0xBB, 0xB6, 0xE5, 0x81, 0x8F, 0xE7, 0xA7, 0xBB, 0xE5, 0x9C,
    0xB0, 0xE5, 0x9D, 0x80, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73,
    0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x20, 0x73, 0x69, 0x7A, 0x65,
    0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20,
    0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x63, 0x72, 0x63, 0x33, 0x32, 0x3B, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x2F, 0x2A, 0x20, 0xE6, 0x96, 0x87, 0xE4, 0xBB, 0xB6, 0xE5, 0x86, 0x85, 0xE5,
    0xAE, 0xB9, 0xE6, 0xA0, 0xA1, 0xE9, 0xAA, 0x8C, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20, 0x20,
    0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x73, 0x68, 0x6F, 0x72, 0x74, 0x20,
    0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5F, 0x77, 0x3B, 0x20, 0x20, 0x20, 0x2F, 0x2A, 0x20,
    0xE5, 0x9B, 0xBE, 0xE7, 0x89, 0x87, 0xE5, 0xAE, 0xBD, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x73, 0x68, 0x6F, 0x72, 0x74,
    0x20, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5F, 0x68, 0x3B, 0x20, 0x20, 0x20, 0x2F, 0x2A,
    0x20, 0xE5, 0x9B, 0xBE, 0xE7, 0x89, 0x87, 0xE9, 0xAB, 0x98, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x7D,
    0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x23, 0x65, 0x6E, 0x64, 0x69, 0x66, 0x20, 0x2F, 0x2F, 0x20, 0x44,
    0x48, 0x4C, 0x5A, 0x5F, 0x54, 0x59, 0x50, 0x45, 0x5F, 0x48, 0x0D, 0x0A
};

static const unsigned char dhlz_flash_data[4792] =
{
    0x23, 0x69, 0x6E, 0x63, 0x6C, 0x75, 0x64, 0x65, 0x20, 0x22, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66,
    0x6C, 0x61, 0x73, 0x68, 0x2E, 0x68, 0x22, 0x0D, 0x0A, 0x23, 0x69, 0x6E, 0x63, 0x6C, 0x75, 0x64,
    0x65, 0x20, 0x22, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x74, 0x79, 0x70, 0x65, 0x2E, 0x68, 0x22, 0x0D,
    0x0A, 0x23, 0x69, 0x6E, 0x63, 0x6C, 0x75, 0x64, 0x65, 0x20, 0x3C, 0x73, 0x74, 0x64, 0x62, 0x6F,
    0x6F, 0x6C, 0x2E, 0x68, 0x3E, 0x0D, 0x0A, 0x23, 0x69, 0x6E, 0x63, 0x6C, 0x75, 0x64, 0x65, 0x20,
    0x3C, 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67, 0x2E, 0x68, 0x3E, 0x0D, 0x0A, 0x23, 0x69, 0x6E, 0x63,
    0x6C, 0x75, 0x64, 0x65, 0x20, 0x3C, 0x73, 0x74, 0x64, 0x6C, 0x69, 0x62, 0x2E, 0x68, 0x3E, 0x0D,
    0x0A, 0x0D, 0x0A, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E,
    0x65, 0x64, 0x20, 0x73, 0x68, 0x6F, 0x72, 0x74, 0x20, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x73, 0x69,
    0x7A, 0x65, 0x20, 0x3D, 0x20, 0x30, 0x3B, 0x0D, 0x0A, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x20,
    0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x73, 0x68, 0x6F, 0x72, 0x74, 0x20, 0x66,
    0x69, 0x6C, 0x65, 0x5F, 0x6E, 0x75, 0x6D, 0x62, 0x65, 0x72, 0x20, 0x3D, 0x20, 0x30, 0x3B, 0x0D,
    0x0A, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64,
    0x20, 0x73, 0x68, 0x6F, 0x72, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F,
    0x5F, 0x73, 0x69, 0x7A, 0x65, 0x20, 0x3D, 0x20, 0x30, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x73, 0x74,
    0x61, 0x74, 0x69, 0x63, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F,
    0x6E, 0x67, 0x20, 0x63, 0x72, 0x63, 0x33, 0x32, 0x5F, 0x63, 0x6F, 0x6D, 0x70, 0x75, 0x74, 0x65,
    0x28, 0x76, 0x6F, 0x69, 0x64, 0x20, 0x63, 0x6F, 0x6E, 0x73, 0x74, 0x20, 0x2A, 0x70, 0x5F, 0x64,
    0x61, 0x74, 0x61, 0x2C, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F,
    0x6E, 0x67, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x2C, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65,
    0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x63, 0x6F, 0x6E, 0x73, 0x74, 0x20, 0x2A, 0x70, 0x5F,
    0x63, 0x72, 0x63, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73,
    0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x63, 0x72, 0x63, 0x3B, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x63, 0x68,
    0x61, 0x72, 0x20, 0x63, 0x6F, 0x6E, 0x73, 0x74, 0x20, 0x2A, 0x64, 0x61, 0x74, 0x61, 0x20, 0x3D,
    0x20, 0x70, 0x5F, 0x64, 0x61, 0x74, 0x61, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E,
    0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x69, 0x2C, 0x20, 0x6A,
    0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x63, 0x72, 0x63, 0x20, 0x3D, 0x20, 0x28, 0x70, 0x5F,
    0x63, 0x72, 0x63, 0x20, 0x3D, 0x3D, 0x20, 0x4E, 0x55, 0x4C, 0x4C, 0x29, 0x20, 0x3F, 0x20, 0x30,
    0x78, 0x46, 0x46, 0x46, 0x46, 0x46, 0x46, 0x46, 0x46, 0x20, 0x3A, 0x20, 0x7E, 0x28, 0x2A, 0x70,
    0x5F, 0x63, 0x72, 0x63, 0x29, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6F,
    0x72, 0x20, 0x28, 0x69, 0x20, 0x3D, 0x20, 0x30, 0x3B, 0x20, 0x69, 0x20, 0x3C, 0x20, 0x73, 0x69,
    0x7A, 0x65, 0x3B, 0x20, 0x69, 0x2B, 0x2B, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x72, 0x63, 0x20, 0x3D, 0x20, 0x63,
    0x72, 0x63, 0x20, 0x5E, 0x20, 0x64, 0x61, 0x74, 0x61, 0x5B, 0x69, 0x5D, 0x3B, 0x0D, 0x0A, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x28, 0x6A, 0x20,
    0x3D, 0x20, 0x38, 0x3B, 0x20, 0x6A, 0x20, 0x3E, 0x20, 0x30, 0x3B, 0x20, 0x6A, 0x2D, 0x2D, 0x29,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x72, 0x63, 0x20, 0x3D, 0x20, 0x28,
    0x63, 0x72, 0x63, 0x20, 0x3E, 0x3E, 0x20, 0x31, 0x29, 0x20, 0x5E, 0x20, 0x28, 0x30, 0x78, 0x45,
    0x44, 0x42, 0x38, 0x38, 0x33, 0x32, 0x30, 0x55, 0x20, 0x26, 0x20, 0x28, 0x28, 0x63, 0x72, 0x63,
    0x20, 0x26, 0x20, 0x31, 0x29, 0x20, 0x3F, 0x20, 0x30, 0x78, 0x46, 0x46, 0x46, 0x46, 0x46, 0x46,
    0x46, 0x46, 0x20, 0x3A, 0x20, 0x30, 0x29, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20,
    0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x7E, 0x63, 0x72, 0x63, 0x3B, 0x0D,
    0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x20, 0x75, 0x6E, 0x73,
    0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x73, 0x68, 0x6F, 0x72, 0x74, 0x20, 0x64, 0x68, 0x6C, 0x7A,
    0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68, 0x65, 0x78, 0x31, 0x36, 0x28, 0x63, 0x6F, 0x6E,
    0x73, 0x74, 0x20, 0x76, 0x6F, 0x69, 0x64, 0x20, 0x2A, 0x70, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A,
    0x20, 0x20, 0x20, 0x20, 0x63, 0x6F, 0x6E, 0x73, 0x74, 0x20, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2A,
    0x64, 0x61, 0x74, 0x61, 0x20, 0x3D, 0x20, 0x70, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x72,
    0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x28, 0x28, 0x64, 0x61, 0x74, 0x61, 0x5B, 0x30, 0x5D, 0x20,
    0x26, 0x20, 0x30, 0x78, 0x30, 0x46, 0x46, 0x29, 0x20, 0x7C, 0x20, 0x28, 0x28, 0x64, 0x61, 0x74,
    0x61, 0x5B, 0x31, 0x5D, 0x20, 0x3C, 0x3C, 0x20, 0x38, 0x29, 0x20, 0x26, 0x20, 0x30, 0x78, 0x30,
    0x46, 0x46, 0x30, 0x30, 0x29, 0x29, 0x3B, 0x0D, 0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x73, 0x74,
    0x61, 0x74, 0x69, 0x63, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F,
    0x6E, 0x67, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68, 0x65,
    0x78, 0x33, 0x32, 0x28, 0x63, 0x6F, 0x6E, 0x73, 0x74, 0x20, 0x76, 0x6F, 0x69, 0x64, 0x20, 0x2A,
    0x70, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x63, 0x6F, 0x6E, 0x73, 0x74,
    0x20, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2A, 0x64, 0x61, 0x74, 0x61, 0x20, 0x3D, 0x20, 0x70, 0x3B,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x28, 0x28, 0x64,
    0x61, 0x74, 0x61, 0x5B, 0x30, 0x5D, 0x20, 0x26, 0x20, 0x30, 0x78, 0x30, 0x46, 0x46, 0x29, 0x20,
    0x7C, 0x20, 0x28, 0x28, 0x64, 0x61, 0x74, 0x61, 0x5B, 0x31, 0x5D, 0x20, 0x3C, 0x3C, 0x20, 0x38,
    0x29, 0x20, 0x26, 0x20, 0x30, 0x78, 0x30, 0x46, 0x46, 0x30, 0x30, 0x29, 0x20, 0x7C, 0x20, 0x28,
    0x28, 0x64, 0x61, 0x74, 0x61, 0x5B, 0x32, 0x5D, 0x20, 0x3C, 0x3C, 0x20, 0x31, 0x36, 0x29, 0x20,
    0x26, 0x20, 0x30, 0x78, 0x30, 0x46, 0x46, 0x30, 0x30, 0x30, 0x30, 0x29, 0x20, 0x7C, 0x20, 0x28,
    0x28, 0x64, 0x61, 0x74, 0x61, 0x5B, 0x33, 0x5D, 0x20, 0x3C, 0x3C, 0x20, 0x32, 0x34, 0x29, 0x20,
    0x26, 0x20, 0x30, 0x78, 0x46, 0x46, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x29, 0x29, 0x3B, 0x0D,
    0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x2F, 0x2A, 0x20, 0xCA, 0xFD, 0xBE, 0xDD, 0xB6, 0xC1, 0xC8,
    0xA1, 0xBD, 0xD3, 0xBF, 0xDA, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E,
    0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61,
    0x73, 0x68, 0x5F, 0x72, 0x65, 0x61, 0x64, 0x28, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64,
    0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x61, 0x64, 0x64, 0x65, 0x72, 0x2C, 0x20, 0x76, 0x6F, 0x69,
    0x64, 0x20, 0x2A, 0x70, 0x5F, 0x64, 0x61, 0x74, 0x61, 0x2C, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67,
    0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x29, 0x0D, 0x0A,
    0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20,
    0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x72, 0x65, 0x74, 0x20, 0x3D, 0x20, 0x30, 0x3B, 0x0D, 0x0A, 0x20,
    0x20, 0x20, 0x20, 0x2F, 0x2F, 0x75, 0x73, 0x65, 0x72, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F,
    0x72, 0x65, 0x61, 0x64, 0x28, 0x44, 0x48, 0x4C, 0x5A, 0x5F, 0x46, 0x4C, 0x41, 0x53, 0x48, 0x5F,
    0x4F, 0x46, 0x46, 0x53, 0x45, 0x54, 0x20, 0x2B, 0x20, 0x61, 0x64, 0x64, 0x65, 0x72, 0x2C, 0x20,
    0x70, 0x5F, 0x64, 0x61, 0x74, 0x61, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x29, 0x3B, 0x20, 0x55,
    0x73, 0x65, 0x72, 0x20, 0x72, 0x65, 0x61, 0x64, 0x20, 0x69, 0x6E, 0x74, 0x65, 0x72, 0x66, 0x61,
    0x63, 0x65, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x72,
    0x65, 0x74, 0x3B, 0x20, 0x2F, 0x2F, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x73, 0x20, 0x74, 0x68,
    0x65, 0x20, 0x6E, 0x75, 0x6D, 0x62, 0x65, 0x72, 0x20, 0x6F, 0x66, 0x20, 0x62, 0x79, 0x74, 0x65,
    0x73, 0x20, 0x72, 0x65, 0x61, 0x64, 0x0D, 0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x2F, 0x2A, 0x20,
    0xD0, 0xA3, 0xD1, 0xE9, 0xCD, 0xB7, 0xD0, 0xC5, 0xCF, 0xA2, 0xCA, 0xC7, 0xB7, 0xF1, 0xD3, 0xD0,
    0xD0, 0xA7, 0xA3, 0xAC, 0xBA, 0xF3, 0xC3, 0xE6, 0xB5, 0xC4, 0xB2, 0xD9, 0xD7, 0xF7, 0xB6, 0xBC,
    0xC8, 0xCE, 0xCE, 0xF1, 0xD2, 0xD1, 0xBE, 0xAD, 0xC5, 0xD0, 0xB6, 0xCF, 0xCD, 0xB7, 0xD0, 0xC5,
    0xCF, 0xA2, 0xD3, 0xD0, 0xD0, 0xA7, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x62, 0x6F, 0x6F, 0x6C, 0x20,
    0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x63, 0x68, 0x65, 0x63, 0x6B,
    0x5F, 0x68, 0x65, 0x61, 0x64, 0x28, 0x76, 0x6F, 0x69, 0x64, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A,
    0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F,
    0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x20, 0x68, 0x65, 0x61, 0x64, 0x3B, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x6D, 0x65, 0x6D, 0x73, 0x65, 0x74, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2C, 0x20,
    0x30, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
    0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29, 0x3B, 0x0D,
    0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x64, 0x68, 0x6C, 0x7A, 0x5F,
    0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x72, 0x65, 0x61, 0x64, 0x28, 0x30, 0x2C, 0x20, 0x26, 0x68,
    0x65, 0x61, 0x64, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75,
    0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29,
    0x20, 0x3D, 0x3D, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63,
    0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x69, 0x66, 0x20, 0x28, 0x73, 0x74, 0x72, 0x6E, 0x63, 0x6D, 0x70, 0x28, 0x68, 0x65, 0x61, 0x64,
    0x2E, 0x74, 0x61, 0x67, 0x2C, 0x20, 0x22, 0x44, 0x48, 0x4C, 0x5A, 0x22, 0x2C, 0x20, 0x34, 0x29,
    0x20, 0x21, 0x3D, 0x20, 0x30, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72,
    0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x66, 0x61, 0x6C, 0x73, 0x65, 0x3B, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x63, 0x72, 0x63, 0x33, 0x32, 0x5F, 0x63, 0x6F, 0x6D,
    0x70, 0x75, 0x74, 0x65, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65,
    0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68,
    0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x20, 0x2D, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28,
    0x68, 0x65, 0x61, 0x64, 0x2E, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x63, 0x72, 0x63, 0x33, 0x32, 0x29,
    0x2C, 0x20, 0x4E, 0x55, 0x4C, 0x4C, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x21, 0x3D, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61,
    0x73, 0x68, 0x5F, 0x68, 0x65, 0x78, 0x33, 0x32, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2E, 0x68,
    0x65, 0x61, 0x64, 0x5F, 0x63, 0x72, 0x63, 0x33, 0x32, 0x29, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x66, 0x61, 0x6C, 0x73, 0x65,
    0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x73, 0x69, 0x7A,
    0x65, 0x20, 0x3D, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68,
    0x65, 0x78, 0x31, 0x36, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2E, 0x68, 0x65, 0x61, 0x64, 0x5F,
    0x73, 0x69, 0x7A, 0x65, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x66, 0x69, 0x6C, 0x65, 0x5F, 0x6E, 0x75, 0x6D, 0x62, 0x65, 0x72, 0x20, 0x3D, 0x20, 0x64, 0x68,
    0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68, 0x65, 0x78, 0x31, 0x36, 0x28, 0x26,
    0x68, 0x65, 0x61, 0x64, 0x2E, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x6E, 0x75, 0x6D, 0x62, 0x65, 0x72,
    0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x69, 0x6C, 0x65,
    0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x20, 0x3D, 0x20, 0x64, 0x68, 0x6C,
    0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68, 0x65, 0x78, 0x31, 0x36, 0x28, 0x26, 0x68,
    0x65, 0x61, 0x64, 0x2E, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69,
    0x7A, 0x65, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20,
    0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x66, 0x61, 0x6C, 0x73, 0x65, 0x3B,
    0x0D, 0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x2F, 0x2A, 0x20, 0xD0, 0xA3, 0xD1, 0xE9, 0xCE, 0xC4,
    0xBC, 0xFE, 0xC4, 0xBF, 0xC2, 0xBC, 0xB1, 0xED, 0xCA, 0xC7, 0xB7, 0xF1, 0xD3, 0xD0, 0xD0, 0xA7,
    0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x62, 0x6F, 0x6F, 0x6C, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66,
    0x6C, 0x61, 0x73, 0x68, 0x5F, 0x63, 0x68, 0x65, 0x63, 0x6B, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x28,
    0x76, 0x6F, 0x69, 0x64, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74,
    0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74,
    0x20, 0x68, 0x65, 0x61, 0x64, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x6D, 0x65, 0x6D, 0x73,
    0x65, 0x74, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2C, 0x20, 0x30, 0x2C, 0x20, 0x73, 0x69, 0x7A,
    0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F,
    0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20,
    0x20, 0x69, 0x66, 0x20, 0x28, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F,
    0x72, 0x65, 0x61, 0x64, 0x28, 0x30, 0x2C, 0x20, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2C, 0x20, 0x73,
    0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C,
    0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29, 0x20, 0x3D, 0x3D, 0x20, 0x73, 0x69,
    0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65,
    0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x7B,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E,
    0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x63, 0x72, 0x63, 0x2C, 0x20, 0x69, 0x3B, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x6F, 0x69, 0x64, 0x20, 0x2A, 0x70,
    0x5F, 0x74, 0x6D, 0x70, 0x20, 0x3D, 0x20, 0x6D, 0x61, 0x6C, 0x6C, 0x6F, 0x63, 0x28, 0x66, 0x69,
    0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x29, 0x3B, 0x0D, 0x0A,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x70, 0x5F,
    0x74, 0x6D, 0x70, 0x20, 0x3D, 0x3D, 0x20, 0x4E, 0x55, 0x4C, 0x4C, 0x29, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x66, 0x61, 0x6C, 0x73,
    0x65, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x28, 0x69, 0x20,
    0x3D, 0x20, 0x30, 0x3B, 0x20, 0x69, 0x20, 0x3C, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x6E, 0x75,
    0x6D, 0x62, 0x65, 0x72, 0x3B, 0x20, 0x69, 0x2B, 0x2B, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x6D, 0x65, 0x6D, 0x73, 0x65, 0x74, 0x28, 0x70, 0x5F, 0x74, 0x6D, 0x70, 0x2C,
    0x20, 0x30, 0x2C, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69,
    0x7A, 0x65, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x72, 0x65, 0x61,
    0x64, 0x28, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x20, 0x2B, 0x20, 0x69, 0x20,
    0x2A, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69, 0x7A, 0x65,
    0x2C, 0x20, 0x70, 0x5F, 0x74, 0x6D, 0x70, 0x2C, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E,
    0x66, 0x6F, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x72, 0x63, 0x20, 0x3D, 0x20, 0x63, 0x72, 0x63,
    0x33, 0x32, 0x5F, 0x63, 0x6F, 0x6D, 0x70, 0x75, 0x74, 0x65, 0x28, 0x70, 0x5F, 0x74, 0x6D, 0x70,
    0x2C, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69, 0x7A, 0x65,
    0x2C, 0x20, 0x28, 0x69, 0x20, 0x3D, 0x3D, 0x20, 0x30, 0x29, 0x20, 0x3F, 0x20, 0x4E, 0x55, 0x4C,
    0x4C, 0x20, 0x3A, 0x20, 0x26, 0x63, 0x72, 0x63, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x66, 0x72, 0x65, 0x65, 0x28, 0x70, 0x5F, 0x74, 0x6D, 0x70, 0x29, 0x3B, 0x0D, 0x0A, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x63, 0x72, 0x63,
    0x20, 0x3D, 0x3D, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68,
    0x65, 0x78, 0x33, 0x32, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2E, 0x66, 0x69, 0x6C, 0x65, 0x5F,
    0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x63, 0x72, 0x63, 0x33, 0x32, 0x29, 0x29, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x74, 0x72, 0x75, 0x65,
    0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
    0x6E, 0x20, 0x66, 0x61, 0x6C, 0x73, 0x65, 0x3B, 0x0D, 0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x2F,
    0x2A, 0x20, 0xD0, 0xA3, 0xD1, 0xE9, 0xCE, 0xC4, 0xBC, 0xFE, 0xC4, 0xDA, 0xC8, 0xDD, 0xCA, 0xC7,
    0xB7, 0xF1, 0xD3, 0xD0, 0xD0, 0xA7, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x62, 0x6F, 0x6F, 0x6C, 0x20,
    0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x63, 0x68, 0x65, 0x63, 0x6B,
    0x5F, 0x64, 0x61, 0x74, 0x61, 0x28, 0x76, 0x6F, 0x69, 0x64, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A,
    0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F,
    0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x20, 0x68, 0x65, 0x61, 0x64, 0x3B, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x6D, 0x65, 0x6D, 0x73, 0x65, 0x74, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2C, 0x20,
    0x30, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
    0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29, 0x3B, 0x0D,
    0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x64, 0x68, 0x6C, 0x7A, 0x5F,
    0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x72, 0x65, 0x61, 0x64, 0x28, 0x30, 0x2C, 0x20, 0x26, 0x68,
    0x65, 0x61, 0x64, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75,
    0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29,
    0x20, 0x3D, 0x3D, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72, 0x75, 0x63,
    0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x74, 0x29, 0x29, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x63, 0x72,
    0x63, 0x2C, 0x20, 0x6F, 0x66, 0x66, 0x73, 0x65, 0x74, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x2C,
    0x20, 0x69, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x76, 0x6F, 0x69,
    0x64, 0x20, 0x2A, 0x70, 0x5F, 0x74, 0x6D, 0x70, 0x20, 0x3D, 0x20, 0x6D, 0x61, 0x6C, 0x6C, 0x6F,
    0x63, 0x28, 0x35, 0x31, 0x32, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x6F, 0x66, 0x66, 0x73, 0x65, 0x74, 0x20, 0x3D, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66,
    0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68, 0x65, 0x78, 0x33, 0x32, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64,
    0x2E, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x64, 0x61, 0x74, 0x61, 0x5F, 0x6F, 0x66, 0x66, 0x73, 0x65,
    0x74, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x69, 0x7A,
    0x65, 0x20, 0x3D, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68,
    0x65, 0x78, 0x33, 0x32, 0x28, 0x26, 0x68, 0x65, 0x61, 0x64, 0x2E, 0x66, 0x69, 0x6C, 0x65, 0x5F,
    0x64, 0x61, 0x74, 0x61, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x29, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x70, 0x5F, 0x74, 0x6D, 0x70,
    0x20, 0x3D, 0x3D, 0x20, 0x4E, 0x55, 0x4C, 0x4C, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x66, 0x61, 0x6C, 0x73, 0x65, 0x3B, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x28, 0x69, 0x20, 0x3D, 0x20, 0x30,
    0x3B, 0x20, 0x69, 0x20, 0x3C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x3B, 0x20, 0x69, 0x20, 0x2B, 0x3D,
    0x20, 0x35, 0x31, 0x32, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7B,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x68,
    0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x72, 0x65, 0x61, 0x64, 0x28, 0x6F, 0x66,
    0x66, 0x73, 0x65, 0x74, 0x20, 0x2B, 0x20, 0x69, 0x20, 0x2A, 0x20, 0x35, 0x31, 0x32, 0x2C, 0x20,
    0x70, 0x5F, 0x74, 0x6D, 0x70, 0x2C, 0x20, 0x35, 0x31, 0x32, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x72, 0x63, 0x20, 0x3D, 0x20,
    0x63, 0x72, 0x63, 0x33, 0x32, 0x5F, 0x63, 0x6F, 0x6D, 0x70, 0x75, 0x74, 0x65, 0x28, 0x70, 0x5F,
    0x74, 0x6D, 0x70, 0x2C, 0x20, 0x35, 0x31, 0x32, 0x2C, 0x20, 0x28, 0x69, 0x20, 0x3D, 0x3D, 0x20,
    0x30, 0x29, 0x20, 0x3F, 0x20, 0x4E, 0x55, 0x4C, 0x4C, 0x20, 0x3A, 0x20, 0x26, 0x63, 0x72, 0x63,
    0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x72, 0x65, 0x65, 0x28, 0x70, 0x5F,
    0x74, 0x6D, 0x70, 0x29, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x69, 0x66, 0x20, 0x28, 0x63, 0x72, 0x63, 0x20, 0x3D, 0x3D, 0x20, 0x64, 0x68, 0x6C, 0x7A,
    0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x68, 0x65, 0x78, 0x33, 0x32, 0x28, 0x26, 0x68, 0x65,
    0x61, 0x64, 0x2E, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x64, 0x61, 0x74, 0x61, 0x5F, 0x63, 0x72, 0x63,
    0x33, 0x32, 0x29, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74,
    0x75, 0x72, 0x6E, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20,
    0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x66, 0x61, 0x6C, 0x73, 0x65, 0x3B,
    0x0D, 0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x2F, 0x2A, 0x20, 0xCD, 0xA8, 0xB9, 0xFD, 0xCE, 0xC4,
    0xBC, 0xFE, 0xC3, 0xFB, 0xB3, 0xC6, 0xBB, 0xF1, 0xC8, 0xA1, 0xCE, 0xC4, 0xBC, 0xFE, 0xD0, 0xC5,
    0xCF, 0xA2, 0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x62, 0x6F, 0x6F, 0x6C, 0x20, 0x64, 0x68, 0x6C, 0x7A,
    0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x66, 0x69, 0x6E, 0x64, 0x28, 0x63, 0x6F, 0x6E, 0x73,
    0x74, 0x20, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2A, 0x6E, 0x61, 0x6D, 0x65, 0x2C, 0x20, 0x73, 0x74,
    0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x74,
    0x20, 0x2A, 0x69, 0x6E, 0x66, 0x6F, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20,
    0x69, 0x66, 0x20, 0x28, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x6E, 0x75, 0x6D, 0x62, 0x65, 0x72, 0x20,
    0x3E, 0x3D, 0x20, 0x31, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x6E, 0x74, 0x20, 0x69, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x28, 0x69, 0x20, 0x3D,
    0x20, 0x30, 0x3B, 0x20, 0x69, 0x20, 0x3C, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x6E, 0x75, 0x6D,
    0x62, 0x65, 0x72, 0x3B, 0x20, 0x69, 0x2B, 0x2B, 0x29, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x69, 0x6E, 0x66, 0x6F, 0x2D, 0x3E, 0x6E, 0x61, 0x6D, 0x65, 0x5B, 0x30, 0x5D, 0x20,
    0x3D, 0x20, 0x30, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x72, 0x65, 0x61,
    0x64, 0x28, 0x68, 0x65, 0x61, 0x64, 0x5F, 0x73, 0x69, 0x7A, 0x65, 0x20, 0x2B, 0x20, 0x69, 0x20,
    0x2A, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x73, 0x69, 0x7A, 0x65,
    0x2C, 0x20, 0x69, 0x6E, 0x66, 0x6F, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73,
    0x74, 0x72, 0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F,
    0x74, 0x29, 0x29, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28, 0x28, 0x73, 0x74, 0x72, 0x6C, 0x65, 0x6E, 0x28,
    0x6E, 0x61, 0x6D, 0x65, 0x29, 0x20, 0x3D, 0x3D, 0x20, 0x73, 0x74, 0x72, 0x6C, 0x65, 0x6E, 0x28,
    0x69, 0x6E, 0x66, 0x6F, 0x2D, 0x3E, 0x6E, 0x61, 0x6D, 0x65, 0x29, 0x29, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x26, 0x26,
    0x20, 0x28, 0x73, 0x74, 0x72, 0x6E, 0x63, 0x6D, 0x70, 0x28, 0x69, 0x6E, 0x66, 0x6F, 0x2D, 0x3E,
    0x6E, 0x61, 0x6D, 0x65, 0x2C, 0x20, 0x6E, 0x61, 0x6D, 0x65, 0x2C, 0x20, 0x73, 0x74, 0x72, 0x6C,
    0x65, 0x6E, 0x28, 0x6E, 0x61, 0x6D, 0x65, 0x29, 0x29, 0x20, 0x3D, 0x3D, 0x20, 0x30, 0x29, 0x29,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D,
    0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x74, 0x72, 0x75, 0x65, 0x3B, 0x0D, 0x0A, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x20, 0x20,
    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x7D, 0x0D, 0x0A,
    0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x6D, 0x65, 0x6D, 0x73, 0x65, 0x74, 0x28, 0x69, 0x6E, 0x66,
    0x6F, 0x2C, 0x20, 0x30, 0x2C, 0x20, 0x73, 0x69, 0x7A, 0x65, 0x6F, 0x66, 0x28, 0x73, 0x74, 0x72,
    0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x74, 0x29,
    0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x66,
    0x61, 0x6C, 0x73, 0x65, 0x3B, 0x0D, 0x0A, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x2F, 0x2A, 0x20, 0xCD,
    0xA8, 0xB9, 0xFD, 0xCE, 0xC4, 0xBC, 0xFE, 0xC3, 0xFB, 0xB3, 0xC6, 0xBB, 0xF1, 0xC8, 0xA1, 0xCE,
    0xC4, 0xBC, 0xFE, 0xC6, 0xAB, 0xD2, 0xC6, 0xB5, 0xD8, 0xD6, 0xB7, 0x20, 0x2A, 0x2F, 0x0D, 0x0A,
    0x75, 0x6E, 0x73, 0x69, 0x67, 0x6E, 0x65, 0x64, 0x20, 0x6C, 0x6F, 0x6E, 0x67, 0x20, 0x64, 0x68,
    0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x67, 0x65, 0x74, 0x5F, 0x61, 0x64, 0x64,
    0x65, 0x72, 0x28, 0x63, 0x6F, 0x6E, 0x73, 0x74, 0x20, 0x63, 0x68, 0x61, 0x72, 0x20, 0x2A, 0x6E,
    0x61, 0x6D, 0x65, 0x29, 0x0D, 0x0A, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x72,
    0x75, 0x63, 0x74, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x5F, 0x69, 0x6E, 0x66, 0x6F, 0x5F, 0x74, 0x20,
    0x69, 0x6E, 0x66, 0x6F, 0x3B, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20,
    0x28, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68, 0x5F, 0x66, 0x69, 0x6E, 0x64,
    0x28, 0x6E, 0x61, 0x6D, 0x65, 0x2C, 0x20, 0x26, 0x69, 0x6E, 0x66, 0x6F, 0x29, 0x29, 0x0D, 0x0A,
    0x20, 0x20, 0x20, 0x20, 0x7B, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72,
    0x65, 0x74, 0x75, 0x72, 0x6E, 0x20, 0x64, 0x68, 0x6C, 0x7A, 0x5F, 0x66, 0x6C, 0x61, 0x73, 0x68,
    0x5F, 0x68, 0x65, 0x78, 0x33, 0x32, 0x28, 0x26, 0x69, 0x6E, 0x66, 0x6F, 0x2E, 0x61, 0x64, 0x64,
    0x65, 0x72, 0x5F, 0x6F, 0x66, 0x66, 0x73, 0x65, 0x74, 0x29, 0x3B, 0x0D, 0x0A, 0x20, 0x20, 0x20,
    0x20, 0x7D, 0x0D, 0x0A, 0x0D, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6E,
    0x20, 0x30, 0x3B, 0x20, 0x2F, 0x2A, 0x20, 0x4E, 0x6F, 0x74, 0x20, 0x66, 0x6F, 0x75, 0x6E, 0x64,
    0x20, 0x2A, 0x2F, 0x0D, 0x0A, 0x7D, 0x0D, 0x0A
};


help_outfile::help_outfile(void)
{
}

help_outfile::~help_outfile()
{
}

bool help_outfile::path(QString qpath)
{
    if (!path_creation(qpath, "dhlz_type.h", (const char *)dhlz_type_data, sizeof(dhlz_type_data)))
    {
        return false;
    }

    if (!path_creation(qpath, "dhlz_flash.c", (const char *)dhlz_flash_data, sizeof(dhlz_flash_data)))
    {
        return false;
    }

    return true;
}

QString help_outfile::get_file_info(QString qfile)
{
    // 获取当前日期和时间
    QDateTime currentDateTime = QDateTime::currentDateTime();
    // 格式化当前日期和时间为字符串
    QString curtime = currentDateTime.toString("yyyy-MM-dd hh:mm");
    QString qstr = "/*****************************************************\n";
    qstr += " * File: " + qfile + "\n";
    qstr += " * Author: DHLZ\n";
    qstr += " * Date: 2024-06-16\n";
    qstr += " * Version: " + QString::number(USER_VER / 100) + "." + QString::number(USER_VER % 100) + "\n";
    qstr += " * Out Time:" + curtime + "\n";
    qstr += "\n*****************************************************/\n\n";
    return qstr;
}

bool help_outfile::path_creation(QString qpath, QString qfile, const char *p_data, int size)
{
    QDir dir(qpath);
    QString fullPath = dir.filePath(qfile);
    QFile file(fullPath);

    if (!file.open(QIODevice::WriteOnly))
    {
        qDebug() << "Failed to open file for writing.";
        return false;
    }

    QTextStream stream(&file);
    stream << get_file_info(qfile);
    stream.flush();
    QDataStream out(&file);// 创建数据流
    out.writeRawData(p_data, size);// 写入数据
    file.close();
    return true;
}
